package com.parse.ip.parseip.pareservice;

import com.parse.ip.parseip.entity.Telephone;

import java.io.IOException;
import java.net.MalformedURLException;

/**
 * 解析接口
 */
public interface PareInterplace {

    /**
     * 解析ip归属地
     * @param ip
     * @return
     * @throws IOException
     */
    String parseIp(String ip) throws IOException;

    /**
     * 解析电话归属地
     * @param tele
     * @return
     * @throws MalformedURLException
     */
    Telephone paseTelephone(String tele) throws MalformedURLException;

}
